<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>品优购分类页</title>
    <!-- 引入第3方辅助插件css -->
    <link rel="stylesheet" href="../lib/fontawesome/css/font-awesome.css">
    <link rel="stylesheet" href="../lib/mui/css/mui.css">
    <!-- 引入公共样式css -->
    <link rel="stylesheet" href="../css/comment.css">
    <!-- 引入当前页面样式css -->
    <link rel="stylesheet" href="../css/category.css">
</head>

<body>
    <!-- 页面顶部 -->
    <header class="pyg_header">
        <div class="mui-input-row mui-search">
            <input type="search" class="mui-input-clear" placeholder="">
        </div>
    </header>

    <!-- 主体内容 -->
    <div class="pyg_categorys">
        <!-- 左边分类列表 -->
        <div class="category_left">
            <ul>
                <!-- 左边分类列表模板 占位 -->
            </ul>
        </div>

        <!-- 右边对应某类商品的品牌 -->
        <div class="category_right">
            <!-- 数据渲染模板 占位 -->
        </div>
    </div>

    <!-- 页面底部 -->
    <footer class="pyg_footer">
        <a href="../index.html">
            <span class="fa fa-home"></span>
            <div>首页</div>
        </a>
    
        <a href="javascript:;">
            <span class="fa fa-list-ul"></span>
            <div>分类</div>
        </a>
    
        <a href="javascript:;">
            <span class="fa fa-shopping-cart "></span>
            <div>购物车</div>
        </a>
    
        <a href="javascript:;"><span class="fa fa-user-circle-o"></span>
            <div>我的</div>
        </a>
    </footer>
</body>

</html>
<!-- 引入第3方辅助插件js -->
<script src="../lib/mui/js/mui.min.js"></script>
<!-- 引入zepto.js -->
<script src="../lib/zepto/zepto.js"></script>
<!-- 引入模板引擎 -->
<script src="../lib/arttemplate/template-web.js"></script>
<!-- 引入scroll.js -->
<script src="../lib/iscroll/iscroll.js"></script>
<!-- 引入公共comment.js -->
<script src="../js/comment.js"></script>
<!-- 引入当前页面的js -->
<script src="../js/category.js"></script>

<!-- ** template模板 ** -->
<!-- 左边分类列表  -->
<script type="text/template" id="leftTpl">
    {{each data value index}}
    <li class="{{index == 0?'active':''}}">{{value.cat_name}}</li>
    {{/each}}
</script>

<!-- 右边对应某类商品的品牌 -->
<script type="text/template" id="rightTpl">
    <div>
    {{each data value1 index1}}
    <div class="category_item">
            <div class="item_title">{{value1.cat_name}}</div>
            <ul>
                {{each value1.children value2 index2}}
                <li>
                    <a href="javascript:;">
                        <img src="http://api.pyg.ak48.xyz/{{value2.cat_icon}}" alt="{{value2.cat_name}}">
                        <div>{{value2.cat_name}}</div>
                    </a>
                </li>
                {{/each}}
            </ul>
        </div>
    {{/each}}
    </div>
</script>